/*
* tmf_measure.h
*/
#ifndef _TMS_MEASURE_H_
#define _TMS_MEASURE_H_

#include <stdio.h>
#include <semaphore.h>
#include <pthread.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "intf_tmf_measure.h"

struct tmf_msr_mng_t {

	int timer_thrd_exit;					/* exit flag of timer thread */
	pthread_t timer_thrd_id;				/* thread id of timer thread */
	pthread_mutex_t mtx_msr_mode;
	pthread_cond_t cond_msr_mode;
	int fd;									/* file handle of ds18b20 device file*/
	enum TMF_MSR_MODE mode;					/* mode of getting temperature */
	unsigned int interval;					/* interval of reporting temperature */
	TMF_MSR_NOTIFY_CB tmf_msr_notify_cb;	/* function pointor of getting temperature */
};

#endif
